package com.example.cloud.dao.mongdb.basic.info;

import com.example.cloud.model.system.Menu;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/3/4.
 */
@Repository
public interface MongoMenuRepository extends MongoRepository<Menu, Long> {
    List<Menu> findByIsShow(int isShow);
    List<Menu> findByType(int type);
    List<Menu> findByParentIdAndTypeOrderBySort(long parentId,int type);
}
